package com.yx.learn.service;

import java.util.List;

import com.yx.learn.domain.Company;

public interface CompanyService {

	public void saveCompany(Company company)throws Exception;
	
	public void deleteCompany(Company company)throws Exception;
	
	public void updateCompany(Company company)throws Exception;
	
	public Company findById(int id)throws Exception;
	
	public List<Company> findAll()throws Exception;
	
	public List<Company> find(String hql)throws Exception;
	
	public String findAllToJson()throws Exception;
	
	public String companiesToCombobox()throws Exception;
	
	public String findCompanies(int pageNumber, int pageSize)throws Exception;

}
